$(function () {
    $('.home-dropdown').click(function (event) {
        if ($(this).hasClass('open')) {
            $(this).removeClass('open');
            $(this).next('.home-dropdown-cont').slideToggle(500);
        } else {
            $(this).addClass('open');
            $(this).next('.home-dropdown-cont').slideToggle(500);
        }
        if (event.stopPropagation) {
            event.stopPropagation(); // 针对 Mozilla 和 Opera 
        } else if (window.event) {
            window.event.cancelBubble = true; // 针对 IE 
        }
    });
});